package librus.cheeseChaser.util
{
	import flash.geom.Point;

	public class Direction
	{
		public static const UP:Direction = new Direction(new Point(0,-1));
		public static const DOWN:Direction = new Direction(new Point(0,1));
		public static const LEFT:Direction = new Direction(new Point(-1,0));
		public static const RIGHT:Direction = new Direction(new Point(1,0));
		
		public static const UP_RIGHT:Direction = new Direction(new Point(1,-1));
		public static const UP_LEFT:Direction = new Direction(new Point(-1,-1));
		public static const DOWN_RIGHT:Direction = new Direction(new Point(1,1));
		public static const DOWN_LEFT:Direction = new Direction(new Point(-1,1));
		
		public static const BASE_DIRECTIONS:Array = [UP,DOWN,LEFT,RIGHT];
		public static const ALL_DIRECTIONS:Array = [UP,DOWN,LEFT,RIGHT, UP_LEFT, UP_RIGHT, DOWN_LEFT, DOWN_RIGHT];
		
		public var value:Point;
		public function Direction(value:Point)
		{
			this.value = value;
		}
	}
}